<?php
require_once 'Mobitv/Admin/Action.php';

class getplayerAction extends Mobitv_Admin_Action
{
    public function execute()
    {
        $this->setOption('use_layout', false);
        $this->updateLoginStatus();
        $videoId = isset($_GET['id']) ? intval($_GET['id']) : 0;
        $videoDao = Vega_Dao::factory('Mobitv_Admin_Video');
        $video = $videoDao->getDetail($videoId);

        if (!$videoId || !$video) $this->forward404();

        $this->_view->assign('video', $video);
    }
}